﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DJY.Code
{
    /// <summary>
    /// 缓存键
    /// </summary>
    public static class CacheKeys
    {
        //地区
        public const string Sys_Area = "Sys_Area";

        //系统功能
        public const string Sys_Module = "Sys_Module";

        //角色授权
        public const string Role_Auths = "Role_Auth_{0}_{1}";

        /// <summary>
        /// 过期时间
        /// </summary>
        public static readonly Dictionary<string, Tuple<TimeSpan, TimeSpan>> ExpireTimes = new Dictionary<string, Tuple<TimeSpan, TimeSpan>>()
        {
            {Sys_Area,Tuple.Create(TimeSpan.FromDays(7),TimeSpan.Zero) }
        };
    }
}
